<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
<table border="1">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>email</th>
        <th>age</th>
        <th>index</th>
        <th>操作</th>
    </tr>
    <tr th:each="employee, status : ${employeeList}">
        <td th:text="${employee.id}">编号</td>
        <td th:text="${employee.name}">姓名</td>
        <td th:text="${employee.email}">邮箱</td>
        <td th:text="${employee.age}">年龄</td>
        <td th:text="${status.index}">index</td>
        <td><a th:href="@{/employee/{id}(id=${employee.id})}">详情</a></td>
    </tr>
</table>
</body>
</html>